﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.ProjectOpenGXDW
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.ProjectOpenGXDW;

    public class ProjectGXDWOpenDetail_map : EntityMapping<ProjectGXDWOpenDetail>
    {
        public ProjectGXDWOpenDetail_map()
        {
            Property(x => x.Value1, map =>
            {
                map.Length(500);
            });
            Property(x => x.Value2, map =>
            {
                map.Length(500);
            });
            Property(x => x.Value3, map =>
            {
                map.Length(500);
            });
            Property(x => x.Value4, map =>
            {
                map.Length(500);
            });

            //所属项目与投标人关联ID
            ManyToOne(x => x.pe, map =>
            {
                map.Column("PEId");
            });

            //所属开标记录ID
            ManyToOne(x => x.Record, map =>
            {
                map.Column("RecordId");
            });
        }
    }
}
